The device sharing check races when more than one file backed vbd is
authorrread@ubuntu.eng.hq.xensource.com <rread@ubuntu.eng.hq.xensource.com>
Mon, 28 Nov 2005 22:34:00 +0000 (15:34 -0700)
committerrread@ubuntu.eng.hq.xensource.com <rread@ubuntu.eng.hq.xensource.com>
Mon, 28 Nov 2005 22:34:00 +0000 (15:34 -0700)
commitb8ae09f01c2bf4696d17d7c46a1fb5d5f0c245a5
tree035bef9e91377c0639ffbb239b80ac3241f5a24f
parent7376dc02043c2a8c289e70c3441852e426332dc9
The device sharing check races when more than one file backed vbd is
configured. Both of the files pick the same free loop device in the for
loop, and then one fails to losetup.  This patch will now retry if
losetup fails until it succeeds or no more devices are available.

Signed-off-by: Robert Read <robert@xensource.com>
tools/examples/block